package com.ts.ischool.dao;import java.util.HashMap;import java.util.List;import java.util.Map;import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;import com.ts.ischool.pojo.AssessmentBean;public class AssessmentDaoImpl extends SqlMapClientDaoSupport implements AssessmentDao {	@SuppressWarnings("unchecked")	public List<AssessmentBean> getAssessmentByTeacherId(String teacherId) {				Map<String,String> map = new HashMap<String,String>();		map.put("teacherId", teacherId);		return (List<AssessmentBean>)this.getSqlMapClientTemplate().queryForList("assessment.getAssessmentByTeacherId",map);	}			public int insertNewAssessment(Map<String, Object> map){				Integer id = (Integer) this.getSqlMapClientTemplate().insert("assessment.addNewAssessment",map);		return id.intValue();	}}